package mypazar.salesman;

import tr.edu.ege.seagent.planner.htn.Action;
import tr.edu.ege.seagent.planner.htn.ExecutionMethod;
import tr.edu.ege.seagent.planner.htn.Outcome;

/**
 * Action class of ACSendSalesFailure.
 */
public class ACSendSalesFailure extends Action {

	/**
	 * message outcome.
	 */
	@Outcome
	private String message;

	/**
	 * Returns the value of the message outcome.
	 */
	public String getMessage() {
		return this.message;
	}

	/**
	 * Sets the value of the message outcome.
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * seller outcome.
	 */
	@Outcome
	private String seller;

	/**
	 * Returns the value of the seller outcome.
	 */
	public String getSeller() {
		return this.seller;
	}

	/**
	 * Sets the value of the saller outcome.
	 */
	public void setSeller(String seller) {
		this.seller = seller;
	}

	/**
	 * Execution method.
	 */
	@ExecutionMethod
	public void execute() {
		this.setSeller(getAgentIdentifier().toString().substring(0, 9));
		this.setMessage("Satis basarisiz!!");
	}

}
